import { defineStore } from 'pinia'

export const useSurveyDrawStore = defineStore('counter', {
  state: () => {
    return {
      form: {
        referenceType: 1.95,
        lineType: 'solid',
        annotationType: 'line',
        lineWidth: 2,
        lineColor: 'rgba(255, 69, 0, 1)',
        fontColor: 'rgba(255, 69, 0, 1)',
        fontSize: 16
      }
    }
  },
  // 也可以定义为
  // state: () => ({ count: 0 })
  actions: {
    setFormValus(values) {
      this.form = values
      console.log(values, 'values')
    },
  },
})